package com.example.firstboot.service.impl;

import com.example.firstboot.entity.CheckList;
import com.example.firstboot.mapper.CheckMapper;
import com.example.firstboot.service.CheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CheckServiceImpl implements CheckService {
    @Autowired
    private CheckMapper checkMapper;

    @Override
    public int saveCheckResult(String account, String checkId, String checkResult) {
        return checkMapper.saveCheckResult(account,checkId,checkResult);
    }

    @Override
    public int findCheckIdByName(String checkName) {
        return checkMapper.findCheckIdByName(checkName);
    }

    @Override
    public List<CheckList> queryCheckList() {
        return checkMapper.queryCheckList();
    }
}
